<%@ page language="java" contentType="text/html; charset=windows-1256"
    pageEncoding="windows-1256"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>Insert title here</title>
</head>
<body>
<h3>Companies</h3>
<c:choose>
	<c:when test="${fn:length(calendars) gt 0}">
		<table border=1>
			<tr>
				<th>Name</th>
				<th>Age</th>
				<th>Senior Citizen</th>
			</tr>
			<c:forEach var="calendar" items="${calendars}">
				<tr >
					<td><c:out value="${calendar.id}"/></td>
					<td>${calendar.title}</td>
					<td>${calendar.note}</td>
				</tr>
			</c:forEach>
		</table>
	</c:when>
	<c:otherwise>No calendars</c:otherwise>
</c:choose>
</body>
</html>